﻿<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
			<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>home</title>

		
	</head>
	<body >
		home
		<a href="home2.html">link home2</a>
	</body>
	<script src="js/jquery-1.9.0.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/common.js" type="text/javascript" charset="utf-8"></script>

	<script type="text/javascript">
		$(function () {
            checkToken();
			test();
        });


        //示例接口
        //只有登录成功，才可使用
        function test(){
            $.ajax({
                url: adr + '/login/test',
                type: "GET",
                async: false,
                xhrFields: {withCredentials: true},
                crossDomain: true,
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    var result = parseData(data);
                    console.log(result);
                }
            })
        }


	</script>
</html>
